<template>
  <div class="">
    我是分类页面
    <button @click="$router.back()">返回</button>
   </div>
</template>

<script setup>
import { useRoute } from 'vue-router';
// const { query } = useRoute();
// console.log(query);
const { params } = useRoute();
// 动态路由传参使用的也是 params
console.log(params);
</script>
<style lang="scss" scoped>
</style>